﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Dto
{
    public class ShippingSelectMaterialDto
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }

        /// <summary>
        /// 库存数量
        /// </summary>
        public decimal? InvCount { get; set; }

        public decimal? Qty = 0;

        /// <summary>
        /// 所在托盘
        /// </summary>
        public string PallBarcode { get; set; }
        public string SuplierName { get; set; }
        public string SuplierCode { get; set; }
        public string StockName { get; set; }
        public string StockCode { get; set; }
        public string BatchNo { get; set; }

        public long InventoryId { get; set; } = 0;

        public string LocationCode { get; set; }
        public string LocationName { get; set; }
      

        public int? Status { get; set; }

        public string PackCode { get; set; }
        public string ModelSpec { get; set; }


        public string CachePortCode { get; set; }


        public DateTime? CreatedDate { get; set; }
        public DateTime? PartSendDate { get; set; }
    }

    public class ShippingMaterialLookDto
    {
        public long Id { get; set; }

        /// <summary>
        /// 出库订单号
        /// </summary>
        public string OrderSn { get; set; }

        /// <summary>
        /// 单据类型 1-整托出库 2-拣选出库
        /// </summary>
        public int? BillType { get; set; }

        /// <summary>
        /// 仓库Id
        /// </summary>
        public long? WarehouseId { get; set; }

        /// <summary>
        /// 库房编码
        /// </summary>
        [MaxLength(60)]
        public string WarehouseCode { get; set; }

        /// <summary>
        /// 库房名称
        /// </summary>
        public string WarehouseName { get; set; }
        public DateTime BillDate { get; set; }
       

        /// <summary>
        /// 库区编码
        /// </summary>
        public string AreaCode { get; set; }

        /// <summary>
        /// 库区名称
        /// </summary>
        [MaxLength(60)]
        public string AreaName { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        /// 供应商Id
        /// </summary>
        public long? SupplierId { get; set; }
        public string ProductName { get; set; }
      
        public string DeptName { get; set; }
        /// <summary>
        /// 计划生产数量
        /// </summary>
        public int ProductQty { get; set; }
        /// <summary>
        /// 生产任务单编号
        /// </summary>
        public string ProOrderNo { get; set; }
        public string OtherTypeName { get; set; }
        /// <summary>
        /// 客户id
        /// </summary>
        public long? CustomerId { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }
        public string CustomerCode { get; set; }
        public string SendAddress { get; set; }
        public string SendOrgan { get; set; }

        public List<ShippingSelectMaterialDto> ShippingSelectMaterialDtos { get; set; }
    }
}
